package com.by.hellospringboot.service;

import com.by.hellospringboot.controller.request.UserRequestBean;
import com.by.hellospringboot.domain.User;
import org.springframework.data.domain.Page;

public interface UserService {

    User create(UserRequestBean bean);

    User findById(Long id);

    Page<User> list(int page, int size, String username, Integer maxAge, Integer minAge, Integer gender, String phone, String accessCardNumber, String orderParam, String direction);

    User update(Long id, UserRequestBean bean);

    User patch(Long id, UserRequestBean bean);

    void delete(Long id);

    void test();

    void test1();

}
